package com.mdb.util;

import com.google.gson.Gson;

public class JsonUtils
{
  private static final Gson gson = new Gson();

  public static final String serialize(Object o)
  {
    return gson.toJson(o);
  }

  public static final <T> T parse(String content, Class<T> valueType)
  {
    return gson.fromJson(content, valueType);
  }
}